 |
 |
 |
 |
#318298 - 11/06/09 12:21 AM
Re: [7.3+] Custom Tag - Vimeo Video
[Re: Gizmo]
|
User
Registered: 10/17/09
Posts: 41
|
I'm not sure why, but the embed code in your forum overwrote one of the \'s; go in and edit the video code and look for "\1", it should be in there several times; make sure that each "\1" shows as "\\1" I don't see that anywhere in the markup This is what I typed in manually Enables - yes Show in Menu - yes Menu Order - 4 Custom tag: video:vimeo Menu Description: Vimeo Video User prompt hint from text editor: Vimeo URL; eg: http://www.vimeo.com/xxxxxxMatching regex: (.+?) Resulting markup: <object width="425" height="350"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=\\\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=\\\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="350"></embed></object>
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#318309 - 11/20/09 07:33 AM
Re: [7.3+] Custom Tag - Vimeo Video
[Re: sirdude]
|
User
Registered: 10/17/09
Posts: 41
|
(.+?) is not a good idea!! that captures anything (other than linebreaks)... wide open  i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now)..  so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c Thanks bro. It didn't work though I just tried it Also, I the Google Video code is not working I have to login as Admin and use the full html embed to make it work
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#318310 - 11/20/09 01:09 PM
Re: [7.3+] Custom Tag - Vimeo Video
[Re: sirdude]
|
User
Registered: 10/17/09
Posts: 41
|
(.+?) is not a good idea!! that captures anything (other than linebreaks)... wide open  i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now)..  so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c Just to let you know I tried that and it didn't work And than all posts and replies throughout the Forum were all blank I asked for Help here: http://www.ubbcentral.com/forums/ubbthre...html#Post231194And than I noticed my Replies would show up if I chose in HTML or in HTML and UBBcode So I deleted the entire Vimeo UBBCode Embed stuff And now everything is working fine weird
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#318313 - 11/20/09 08:20 PM
Re: [7.3+] Custom Tag - Vimeo Video
[Re: sirdude]
|
Member
Registered: 01/19/00
Posts: 169
Loc: Lutz,FL,USA
|
(.+?) is not a good idea!! that captures anything (other than linebreaks)... wide open  i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now)..  so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c OKAY SD. I tried this for both url formats. www and non www. It still won't accept non www url's. What gives?
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
Registered: 05/01/01
Posts: 686
|
|
 |
 |
 |
 |
|